package com.pro.staffmanage.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

/**
 * @Author: Haotian Cui
 * @Date: 2022/8/9 - 08 - 09 - 15:25
 * @Description: com.pro.staffmanage.pojo
 * @Project: staffmanage
 * @version: 1.0
 */
@Data
@AllArgsConstructor
public class Role implements GrantedAuthority {

    private int id;
    private String authorityName;
    private String authorityNameZh;

    @Override
    public String getAuthority() {
        return this.authorityName;
    }

}
